package com.pureut.storage.mapper;

import com.pureut.storage.domain.PickingSchemeStrategy;
import com.pureut.storage.domain.PublicMaterial;
import com.pureut.storage.vo.MaterialMqVo;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * TODO
 * 公共物料Mapper
 * @Description
 * @Author 18741
 * @Date 2023/8/8 13:49
 **/
@Mapper
public interface PublicMaterialMapper extends BaseMapperPlus<PublicMaterialMapper, PublicMaterial, PublicMaterial> {

    /**
     * 根据物料编码获取公共物料信息
     */
    PublicMaterial getPublicGoodsByCode(String materialCode);

    /**
     * 删除公共物料信息
     */
    int deleteData(@Param("idList") List<String> idList);

    /**
     * 修改公共物料信息
     */
    int updateData(MaterialMqVo materialMqVo);

    /**
     * 查询物料信息
     * @return
     */
    List<PublicMaterial> selectMaterialInfo();
}
